import 'package:flutter_bloc/flutter_bloc.dart';

class Counter2Cubit extends Cubit<int> {
  Counter2Cubit() : super(0);
  void increment() => emit(state + 1);

  @override
  void onChange(Change<int> change) {
    change = Change(currentState: 2, nextState: 3);

    super.onChange(change);
    print("内部---2---change---$change");
  }
}
